home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Leser 19
/
Amiga Plus Leser CD 19.iso
/
Tools
/
Freeware
/
PerfectPaint
/
rexx
/
Border
/
Script&Picture
/
Scratch.brx
< prev
next >
Wrap
Text File
|
2002-10-07
|
1KB
|
72 lines
/* arexx Script
*/
options results
parse ARG Port b
ADDRESS value Port
pp_Progresstext 'Border'
pp_GetWidth
W=result
pp_GetHeight
H=result
pp_ClosestColor 255 255 255
White=result
pp_ClosestColor 0 0 0
Black=result
pp_StencilOff
pp_EffectOff
pp_SpareOnOff
pp_ComposeReqOff
pp_Compose 0 100 0
pp_SetApen Black
pp_SetBpen White
pp_Cls
Tot=W+H+5
pp_PenType 1
pp_PenSize 2
Do i=0 to W-1 by 2
pp_Progress i Tot
i1=random(5,20,time('S'))
i2=random(5,20,time('S'))
i3=trunc(random(0,2,time('S')))
IF i3=1 then DO
i1=i1*-1
END
pp_Line i 0 i+i1 i2
pp_Line i H-1 i+i1 H-i2
END
Do i=0 to H-1 by 2
pp_Progress W+i Tot
i1=random(5,20,time('S'))
i2=random(5,20,time('S'))
i3=trunc(random(0,2,time('S')))
IF i3=1 then DO
i1=i1*-1
END
pp_Line 0 i i2 i+i1
pp_Line W-1 i W-i2 i+i1
END
pp_EffectOn
pp_Displace 3
pp_BoxF 0 0 W-1 H-1
pp_Median 1
pp_BoxF 0 0 W-1 H-1
pp_EffectOff
pp_Progress Tot+2 Tot+5
pp_SparetoStencil
pp_InvStencil
EXIT